<template>
  <div id="app">
    <p>{{number | update(self) }}</p>
  </div>
</template>

<script>
export default {
  data(){
    return{
      self:this,
      number:3,
      array:["零","壹","贰","叁","肆","伍","陸","柒","捌","玖","拾"]
    }
  },
  filters:{
    update(value,self){
      return self.array[value];
    }
  }
}  
</script>
<style> 
</style>
